import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class IOdemo1 {
    public static void main(String[] args)  {
        InputStream inputStream= null;
        try {

            inputStream = new FileInputStream("D:/demo.txt");
            int a=inputStream.read();
            System.out.println(a);

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
